            <div class="head"><h5 class="iFrames">Users</h5></div>
            <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
                <thead>
                    <tr>
                        <th>Name</th>
                        <th>Login</th>
                        <th>Role</th>
                        <th>Actions</th>
                    </tr>
                </thead>
                <tbody>
                    	<?php
						$i = 1;
                    	foreach ($users as $user){ ?>
                    	
		                    <tr class="gradeA">	
		                    		<td><?php echo $user->getName(); ?></td> 
		                        	<td><?php echo $user->getLogin(); ?></td> 
		                        	<td><?php echo $user->getUserRol(); ?></td> 
		                        	
		                        	<td style="text-align: center">
		                        		<div style="clear:both;">
		                        				<img style="cursor:pointer" title="edit"  src="<?php echo image_path("icons/color/notebook.png")?>" onclick="$.ajax({type: 'POST', url: '<?php echo url_for('users/show?id=' . $user->getId() )?>', script:true, cache:false, success: function(data) {  $('#category_container_div').html(data);} });")) />

												<img style="cursor:pointer; margin-left: 40px" title="delete user"   src="<?php echo image_path("icons/color/cross.png")?>" onclick="jConfirm('Are you sure you want to delete the selected User', 'Confirmation Dialog', function(r){if (!r){return false} else {$.ajax({type: 'POST', url: '<?php echo url_for('users/delete?id=' . $user->getId() )?>', script:true, cache:false, success: function(data) {  $('#category_container_div').html(data);} })}});")) />		   
		                        		</div>
		                        	</td>		                        	
		                        	
		                    </tr>
                        <?php }?>
                </tbody>
            </table>
       
        
        <script>
    	oTable = $('#example').dataTable({
    		"bJQueryUI": true,
    		"sPaginationType": "full_numbers",
    		"sDom": '<""f>t<"F"lp>',
    		"bDestroy": true,
    	});
        </script>